package com.bestcem.xm.award.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author xa.zhang <xa.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/14 15:57
 * @desc 微信配置
 */
@Data
@Configuration
public class WxConfig {

    /**
     * 微信appId
     */
    @Value("${app.award.wx.account.appId}")
    private String appId;

    /**
     * 微信secret
     */
    @Value("${app.award.wx.account.secret}")
    private String secret;
    /**
     * 微信accessTokenUrl
     */
    @Value("${app.award.wx.url.accessTokenUrl}")
    private String  accessTokenUrl;


    @Value("${app.award.wx.redis.expire}")
    private Long redisKeyExpire;

    @Value("${app.award.wx.key}")
    private String key;

    @Value("${app.award.wx.url.saasServer}")
    private String saasServerUrl;

    @Value("${app.award.wx.url.surveySystem}")
    private String surveySystemUrl;

    @Value("${app.award.wx.url.oauth2Authorize}")
    private String oauth2AuthorizeUrl;

    @Value("${app.award.wx.scope}")
    private String scope;

    @Value("${app.award.wx.test}")
    private boolean test;
}
